/**
 * @author: ferret
 * @date: 2024/8/17
 */
import { NDialogProvider, NMessageProvider, NNotificationProvider } from 'naive-ui';

export default defineComponent({
  name: 'FxNaiveProvider',
  inheritAttrs: false,
  setup(_props, context) {
    const slots = context.slots;
    // console.log('useThemeVars  = ', useThemeVars());
    return () => {
      return h(NDialogProvider, {}, {
        default: () => h(NMessageProvider, {}, {
          default: () => h(NNotificationProvider, {}, {
            default: slots.default
          })
        })
      });
    };
  }
});